﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Xiami.lib {
    class Album {
        protected string _artist;
        protected int _artistId;
        protected string _albumName;
        protected int _alubmId;
        protected string _albumCover;
        protected int _albumCoverId;
        protected string _albumDescription;
        protected Hashtable _albumMusic;

        public Album() {
            this._artist = "None";
            this._artistId = 0;
            this._albumName = "None";
            this._alubmId = 0;
            this._albumCover = "None";
            this._albumCoverId = 0;
            this._albumDescription = "None";
            this._albumMusic = new Hashtable();
        }

        public void setArtist(string artist) {
            this._artist = artist;
        }

        public string getArtist() {
            return this._artist;
        }

        public void setArtist(int artistId) {
            this._artistId = artistId;
        }

        public int getArtistId() {
            return this._artistId;
        }

        public void setAlbumName(string albumName) {
            this._albumName = albumName;
        }

        public string getAlbumName() {
            return this._albumName;
        }

        public void setAlbumCover(string albumCover) {
            this._albumCover = albumCover;
        }

        public string getAlbumCover() {
            return this._albumCover;
        }

        public void setAlbumCoverId(int albumCoverId) {
            this._albumCoverId = albumCoverId;
        }

        public int getAlbumCoverId() {
            return this._albumCoverId;
        }

        public void setAlbumDescription(string albumDescription) {
            this._albumDescription = albumDescription;
        }

        public string getAlbumDescription() {
            return this._albumDescription;
        }

        public void setAlbmuMusic(int key, string value) {
            this._albumMusic.Add(key, value);
        }

        public Hashtable getAlbumMusic() {
            return this._albumMusic;
        }

        public string getAlbumMusicName(int key) {
            if(this._albumMusic.ContainsKey(key)) {
                return (string)this._albumMusic[key]; 
            }
            
            return null;
        }
        
    }
}
